package com.ld.control.business.equipment.model;

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import java.io.Serial;
import java.io.Serializable;

/**
 * <p>
 * 设备方法参数表
 * </p>
 *
 * @author wangfeng
 * @since 2024-04-17
 */
@Data
@TableName("equipment_method_param_tmp")
@Schema(description = "设备方法参数表")
public class EquipmentMethodParamTmpModel implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    private Long id;

    @Schema(description = "设备方法id")
    private Integer equipmentMethodTmpId;

    @Schema(description = "参数名称")
    private String name;

    @Schema(description = "0请求参数，1返回参数")
    private Integer useType;

    @Schema(description = "是否支持变量：0否，1是")
    private Integer variableFlag;

    @Schema(description = "参数类型：int/string/objectArray/array")
    private String paramType;

    @Schema(description = "参数值如果@开头则是变量")
    private String value;

    @Schema(description = "默认值")
    private String defaultValue;

    @Schema(description = "排序值越小越靠前")
    private Integer sort;

    @Schema(description = "描述")
    private String description;


    public static final String ID = "id";

    public static final String EQUIPMENT_METHOD_TMP_ID = "equipment_method_tmp_id";

    public static final String NAME = "name";

    public static final String USE_TYPE = "use_type";

    public static final String VARIABLE_FLAG = "variable_flag";

    public static final String PARAM_TYPE = "param_type";

    public static final String VALUE = "value";

    public static final String DEFAULT_VALUE = "default_value";

    public static final String SORT = "sort";

}
